package com.fhj.utils;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;

import android.content.Context;

/**
 * 单例生成一个队列
 * @author jiayujie
 *
 */
public class Queue {

	private static RequestQueue queue;
	
	private   Queue(){}
	
	public static synchronized RequestQueue getInterface(Context context){
		if (queue==null) {
			queue = Volley.newRequestQueue(context);
			queue.start();
		}
		return queue;
	}
}
